<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit">
<!--	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<link href="../../css/global.css" rel="stylesheet" type="text/css">
	<link href="../../js/webuploader/webuploader.css" rel="stylesheet" type="text/css">
	<title class="body_title">新增</title>
</head>

<body>
	<!--栏目列表-->
	<div class="left_menu">
		<div class="sub">
		</div>
	</div>
	<!--/栏目列表-->
	<div class="right_con">
		<div class="card">
			<div class="title"><span class="body_title">新增</span>
				<div class="cfr">
					<div class="tico full">
						<i class="iconfont icon-quanping"></i>
					</div>
				</div>
			</div>
			<div class="tipbox">
			</div>
			<div class="infoBox">
				<div class="boxs">
					<!--基本信息-->
					<div class="box">
						<div class="sub">
							<span>基本信息</span>
							<div class="r_toggle" toggle=".ifo1" toggletext="&#xe74a;,&#xe749;" open>&#xe74a;</div>
						</div>
						<div id="form" class="form ifo1 validform" ly-get="{{apiUrl}}/back/attendanceBack/selectEquipmentById">
							<input id="id" type="hidden" ly-bind="id" />

							<div class="row" gutter="10">
								<div class="label"><em>*</em>设备名称：</div>
								<div class="col-7">
									<input type="text" class=" required ipt" name="equipmentName" id="equipmentName"
										ly-bind="equipmentName" placeholder="请输入设备名称" data-tip="请输入设备名称"
										data-valid="isNonEmpty||between:2-25" data-error="设备名称不能为空||设备名称长度必须在2-25之间">
								</div>
							</div>

							<div class="row" gutter="10">
								<div class="label"><em>*</em>设备类型：</div>
								<div class="col-7">
									<div id="equipmentType" name="equipmentType" ></div>
									<!-- <div id="equipmentType" name="equipmentType"></div> -->
								</div>
							</div>
							<div class="row hide" gutter="10" id="equipmentTypeHide">
								<div class="label"><em>*</em>物资类型：</div>
								<div class="col-7">
									<div id="equipmentType2s">
											<!-- <input type="radio" name="equipmentType2" value="123" >
											<input type="radio" name="equipmentType2" value="456" >
											<input type="radio" name="equipmentType2" value="789" > -->
										</div>

								</div>
							</div>
							<div class="row" gutter="10" id="setMap">
								<div class="label"><em>*</em>选择经纬度：</div>
								<div class="col-7">
									<label class="rad"><input type="radio" value="1" name="map"
											checked="checked"><b></b>地图标注</label>
									<label class="rad"><input type="radio" value="2" name="map"><b></b>经纬度输入</label>
								</div>
							</div>

							<div class="row " gutter="10" id="Map1">
								<div class="label"><em>*</em>地图标注：</div>
								<div class="col-7">
									<a href="javascript:;" class="addbtn" id="addr" type="inputMap">请选择地址</a>
									<input type="inputMap" class="ipt hide">
									<div class="add"></div>
								</div>
							</div>
							<div class="hide " id="Map2">
								<div class="row" gutter="10">
									<div class="label"><em>*</em>经度：</div>
									<div class="col-7">
										<input type="text" class="ipt required" id="log2" placeholder="请输入经度"
											data-tip="请输入经度" data-valid="isNonEmpty||isNumber||maxLength:25||minLog||maxLog"
											   data-error="经度不能为空||经度必须为数字||经度数字长度不能超过25位||经度最小值为-180||经度最大值为180" />
									</div>
								</div>
								<div class="row" gutter="10">
									<div class="label"><em>*</em>纬度：</div>
									<div class="col-7">
										<input type="text" class="ipt required" id="lat2" placeholder="请输入纬度"
											data-tip="请输入纬度" data-valid="isNonEmpty||isNumber||maxLength:25||minLat||maxLat"
											   data-error="纬度不能为空||纬度必须为数字||纬度数字长度不能超过25位||纬度最小值为-90||纬度最大值为90" />
									</div>
								</div>
								<div class="row" gutter="10">
									<div class="label"><em>*</em>地址：</div>
									<div class="col-7">
										<input type="text" class=" required ipt" id="equipmentAddress2"
											ly-bind="equipmentAddress" placeholder="请输入地址" data-tip="请输入地址"
											data-valid="isNonEmpty||between:0-200"
											data-error="地址不能为空||地址长度必须在0-200之间" />
									</div>
								</div>
							</div>
							<!-- readonly -->

							<div class="hide" id="writeAddress">
								<div class="row" gutter="10">
									<div class="label">经度：</div>
									<div class="col-7">
										<input type="text" class="ipt " id="log" ly-bind="log" placeholder="请在地图上标注"
											data-tip="请输入经度" data-valid="isNonEmpty" data-error="经度不能为空" disabled />
									</div>
								</div>
								<div class="row" gutter="10">
									<div class="label">纬度：</div>
									<div class="col-7">
										<input type="text" class="ipt " id="lat" ly-bind="lat" placeholder="请在地图上标注"
											data-tip="请输入纬度" data-valid="isNonEmpty" data-error="纬度不能为空" disabled />
									</div>
								</div>
								<div class="row" gutter="10">
									<div class="label">地址：</div>
									<div class="col-7">
										<input type="text" class=" required ipt" id="equipmentAddress"
											ly-bind="equipmentAddress" placeholder="请在地图上标注" data-tip="请输入地址"
											data-valid="isNonEmpty||between:0-200"
											data-error="地址不能为空||地址长度必须在0-200之间" disabled />
									</div>
								</div>
							</div>
							<div class="row" gutter="10">
								<div class="label">是否启用：</div>
								<div class="col-7">
									<div id="isUsing" name="isUsing"></div>
								</div>
							</div>

						</div>
					</div>
					<div class="btnBox">
						<div class="fr">
							<button class="btn red" id="save-btn-commodityClassification">保存</button>
							<button class="btn goback" onclick="window.history.back()">返回</button>
						</div>
					</div>
				</div>
			</div>
		</div>
</body>
<script id="jquery_js" src="../../js/jquery-1.11.1.min.js"></script>
<script id="config_js" src="../../js/config.js"></script>
<script id="ly_main_js" src="../../js/ly_main.js"></script>
<script src="../../js/jquery-validate.js"></script>
<script src="../../js/webuploader/webuploader.min.js"></script>
<script src="../../js/simpleuploader.js"></script>
<script src="../../js/common.js"></script>
<script src="../../js/ourJs/attendance/equipment-creat.js"></script>

</html>